package com.mybatis.entity;

import java.io.Serializable;

/**
 * @author qinjiasheng
 */
public class Book implements Serializable{
	private Long id;
	private String name;
	private String author;
	private Float price;

	public Book() {
	}

	public Book(String name, String author, Float price) {
		this.name = name;
		this.author = author;
		this.price = price;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return "Book{" +
				"id=" + id +
				", name='" + name + '\'' +
				", author='" + author + '\'' +
				", price=" + price +
				'}';
	}
}
